USE DB_TCC
IF EXISTS(SELECT 1 FROM SYSOBJECTS WHERE NAME LIKE 'P_RESPOSTA_CONSULTAR')
	DROP PROCEDURE P_RESPOSTA_CONSULTAR
GO
CREATE PROCEDURE P_RESPOSTA_CONSULTAR(
	@IDRESPOSTA INTEGER)
AS BEGIN
	SELECT
		IDPERGUNTA,
		IDRESPOSTA,
		DESCRESPOSTA,
		NRORESPOSTA,
		ATIVO,
		USUARIOINCLUSAO,
		DTHRINCLUSAO,
		USUARIOALTERACAO,
		DTHRALTERACAO
	FROM
		RESPOSTA
	WHERE
		IDRESPOSTA = @IDRESPOSTA
END